<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>医生信息 - 医院智能客服系统</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
            color: #333;
        }
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }
        header {
            background-color: #1e88e5;
            color: white;
            padding: 20px;
            text-align: center;
            border-radius: 5px 5px 0 0;
        }
        .nav {
            display: flex;
            margin-bottom: 20px;
            background-color: white;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .nav a {
            padding: 15px 20px;
            text-decoration: none;
            color: #333;
            font-weight: bold;
        }
        .nav a:hover {
            background-color: #f1f1f1;
        }
        .nav a.active {
            background-color: #1e88e5;
            color: white;
        }
        .info-card {
            background-color: white;
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        th {
            background-color: #1e88e5;
            color: white;
        }
        tr:hover {
            background-color: #f5f5f5;
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>医生信息</h1>
            <p>医院医生详细信息查询</p>
        </header>

        <div class="nav">
            <a href="/">智能问答</a>
            <a href="/departments">科室信息</a>
            <a href="/doctors" class="active">医生信息</a>
            <a href="/knowledge">知识库管理</a>
            <a href="/records">咨询记录</a>
        </div>

        <div class="info-card">
            <h2>医生列表</h2>
            <table>
                <thead>
                    <tr>
                        <th>姓名</th>
                        <th>科室</th>
                        <th>职称</th>
                        <th>专长</th>
                        <th>出诊时间</th>
                    </tr>
                </thead>
                <tbody>
                    {% for doctor in doctors %}
                    <tr>
                        <td>{{ doctor[1] }}</td>
                        <td>{{ doctor[2] }}</td>
                        <td>{{ doctor[3] }}</td>
                        <td>{{ doctor[4] }}</td>
                        <td>{{ doctor[5] }}</td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</body>
</html>